package seismosurfer.gui.menuitem;

import javax.swing.JComponent;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

import com.bbn.openmap.gui.menu.AboutMenuItem;

/**
 * This menu item shows a window with credits 
 * about the Seismo-Surfer application.
 *
 */
public class SeismoAboutMenuItem extends AboutMenuItem {
    
    private static final long serialVersionUID = -8654962875109409871L;

    public SeismoAboutMenuItem() {
        super();
    }

    protected JComponent createCopyrightViewer() {
        StringBuffer sb = new StringBuffer("Seismo-Surfer v.0.6 (May 2006)");
        sb
                .append("\nContact person: Yannis Theodoridis [e-mail: ytheod@unipi.gr]");
        sb.append("\n\nCredits: ");
        sb
                .append("\nSotiris Brakatsoulas, Gerasimos Marketos, Kostas Porfyris, Gjergji Strakosha and Eleni Giannakopoulou ");
        sb
                .append("\ncomputer engineers, have contributed in various development phases.");
        sb
                .append("\n\nIoannis Kalogeras, researcher at Geodynamic Institute of Athens,");
        sb
                .append("\nhas been an enthusiastic advisor in issues related to seismology");
        sb.append("\n\nCopyright (c) 2001-06: University of Piraeus");

        JTextArea viewer = new JTextArea(sb.toString());
        viewer.setEditable(false);
        JScrollPane scroller = new JScrollPane(viewer);
        return scroller;
    }

}
